package com.hdsx.restful.ygzt.csgdjtyyxl.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.csgdjtyyxl.bean.Csgdjtyyxl;
import com.hdsx.restful.ygzt.csgdjtyyxl.mapper.CsgdjtyyxlMapper;
import com.hdsx.restful.ygzt.csgdjtyyxl.service.CsgdjtyyxlServer;
/**
 * csgdjtyyxlServer实现类
 *
 */
@Service
public class CsgdjtyyxlServerImpl extends BaseOpearte<Csgdjtyyxl> implements CsgdjtyyxlServer {

	public CsgdjtyyxlServerImpl() {
		super("GIS_CSGDJTYYXL");
	}

	@Resource(name="csgdjtyyxlMapper")
	private CsgdjtyyxlMapper mapper;

	@Override
	public int queryCount(String lxmc, String lxbh,String xzqhbm) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("name", lxmc);
		parameter.put("lxbm", lxbh);
		parameter.put("xzqhbm", xzqhbm);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Csgdjtyyxl> queryList(String lxmc, String lxbh,String xzqhbm, int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("name", lxmc);
		parameter.put("lxbm", lxbh);
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Csgdjtyyxl> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Csgdjtyyxl queryById(String id) {
		return mapper.selectById(id);
	}
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
